<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="shortcut icon" href="favicon.ico"> <link href="/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
<title>Insert title here</title>
</head>
<body class="gray-bg">
    <div class="row  border-bottom white-bg dashboard-header" style="width:99%;">
    		<ul class="list-group">
		  <li class="list-group-item">用户可提现金额总计：<span id="s1">0</span>元</li>
		  <li class="list-group-item">用户已提现金额总计：<span id="s2">0</span>元</li>
		</ul>
    </div>
    <script src="/js/jquery.min.js?v=2.1.4"></script>
    <script type="text/javascript">
    function dataInit(){
		var data ;
		$.ajax({
			type: "GET",
			url: "/points/amount_sum",
			data: data,
			dataType: "json",
			contentType:"application/json;charset=utf8",
			async:false,
			success: function(res){
				console.log(res);
				if(res.code != 0){
					alert("数据初始化失败");
					return ;
				}else{
					data = res.domain;
				}
			},
			complete:function(){
				
			}
		});
		return data;
	}
    $(document).ready(function(){
    		var data = dataInit();
    		$("#s1").html(data.r1);
    		$("#s2").html(data.r2);
    });
    </script>
</body>
</html>